﻿<UserControl x:Class="RK.Wpf3DSampleBrowser.Samples.DXText3D.DXText3DControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:gfx="http://www.rkoenig.eu/graphicsengine"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <gfx:Direct3D11Image Name="m_direct3DImage" 
                             VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Stretch="Fill"
                             UpdateOnRender="True"
                             IsHitTestVisible="True" Focusable="True">
        </gfx:Direct3D11Image>

        <StackPanel Orientation="Horizontal"
                        DockPanel.Dock="Top"
                        Height="50"
                        VerticalAlignment="Top">
            <Button Content="Toggle Wireframe"
                    Click="OnCmdToggleWireframeClick"
                    Width="150" 
                    Margin="10"
                    Padding="5"/>
        </StackPanel>
    </Grid>
</UserControl>
